(function() {
  define(function(require, exports, module) {
    var MSurvey, SurveyListController, VSurvey, m, v;
    MSurvey = require('model/survey');
    VSurvey = require('view/survey');
    m = new MSurvey;
    v = new VSurvey;
    return SurveyListController = Backbone.View.extend({
      initialize: function() {
        console.log('hello');
        Backbone.on('event_load_list_success', function(data) {
          return v.renderList(data);
        });
        Backbone.on('event_load_list', function(option) {
          return m.load_list(option);
        });
        Backbone.on('event_delete', function(survey_id) {
          return m.delete_survey(survey_id);
        });
        Backbone.on('event_delete_success', function(data) {});
        return m.load_list();
      }
    });
  });

}).call(this);
